/*
 * AddWaterButtonMouseListener.cpp
 *
 *  Created on: 12-01-2011
 *      Author: Przemek
 */

#include "listener/AddWaterButtonMouseListener.hpp"
#include "world/creation/WaterCreateToolState.hpp"

AddWaterButtonMouseListener::AddWaterButtonMouseListener(CreationState* creationState) :
	creationState(creationState)
{

}

void AddWaterButtonMouseListener::mouseReleased(const MouseListener::EventArguments&)
{
	creationState->setCreateTool(new WaterCreateToolState());
}
